package com.springcloud.feignservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: 顾志杰
 */
@FeignClient("feign-client")
public interface FeignService {
    @GetMapping("sayHi")
    String sayHi();

  @PostMapping(value = "fileTest",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
  public String fileTest(@RequestPart MultipartFile multipartFile);
}
